package fr.jgraph.model.graph;

import fr.jgraph.model.edge.EdgeDefinition;
import fr.jgraph.model.vertex.VertexDefinition;

public class GraphDefinition {
	public static final int TWO_VERTICES_PER_EDGE = 2;
	public static final int UNDEFINED_VERTICES_PER_EDGE = -1;
	private int verticesPerEdge;
	
	private EdgeDefinition edgeDef;
	private VertexDefinition vertexDef;
	
	public GraphDefinition(EdgeDefinition eDef,VertexDefinition vDef, int vpe) {
		edgeDef = eDef;
		vertexDef=vDef;
		verticesPerEdge = vpe;
	}

	public EdgeDefinition getEdgeDef() {
		return edgeDef;
	}

	public void setEdgeDef(EdgeDefinition a_edgeDef) {
		edgeDef = a_edgeDef;
	}

	public VertexDefinition getVertexDef() {
		return vertexDef;
	}

	public void setVertexDef(VertexDefinition a_vertexDef) {
		vertexDef = a_vertexDef;
	}

	public int getVerticesPerEdge() {
		return verticesPerEdge;
	}

	public void setVerticesPerEdge(int verticesPerEdge) {
		this.verticesPerEdge = verticesPerEdge;
	}
}
